﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Auction
{
    public partial class Login : WebPage
    {
        override
        protected void LoadPage(object sender, EventArgs e)
        {
            
        }

        protected void SignIn(HttpRequest Request,HttpResponse Response)
        {
            //String username = Request["username"];
            //String password = Request["password"];
            //UserTO user = new UserTO();
            //if (username == null || username.Equals(""))
            //{
            //    this.Error("Username can be not empty");
            //}

            //if (password == null || password.Equals(""))
            //{
            //    this.Msg("Password can be not empty");
            //}

            //if (username.Equals(user.Username) && Encode.md5(password).Equals(user.Password))
            //{
            //    Response.Redirect("/Home.aspx");
            //}
            //else
            //{
            //    this.error("Login failed");
            //}
        }
    }
}
